package com.weihua.service;

import com.weihua.bo.PlcBo;
import com.weihua.conver.PlcConvert;
import com.weihua.dao.PlcMapper;
import com.weihua.po.PlcPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PlcService extends BaseServiceImpl<PlcBo, PlcPo, PlcMapper> {


    @Autowired
    private PlcMapper plcMapper;

    @Override
    protected PlcMapper getMapper() {
        return plcMapper;
    }

    @Override
    protected PlcPo transBo2Po(PlcBo bo) {
        return PlcConvert.T.transBo2Po(bo);
    }

    @Override
    protected PlcBo transPo2Bo(PlcPo po) {
        return PlcConvert.T.transPo2Bo(po);
    }
}
